#include <memory>
#include "SelectServer.hpp"

void Usg(char* argv[])
{
    std::cout << argv[0] << "后+" << " " << "port" << std::endl;
}

int main(int argc,char* argv[])
{
    if(argc != 2)
    {
        Usg(argv);
    }
    uint16_t port = atoi(argv[1]);
    std::unique_ptr<SelectServer> server = make_unique<SelectServer>(port);
    server->loop();
    return 0;
}